﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Threading.Tasks;
using System.Web.Http;
using Tisonet.Dobrak.Domain.Models;
using Tisonet.Dobrak.Services.Movies;

namespace Tisonet.Dobrak.Web.Controllers
{
    public class MoviesController : ApiController
    {
        private readonly IMoviesService _service;

        public MoviesController(IMoviesService service)
        {
            _service = service;
        }

        public async Task<Movie> Get(string id)
        {
            return await _service.GetMovieAsync(id);
        }

    }
}
